// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(25,4) == 0;
	question = "special";
	text1 = "You are standing just outside the ruins of an abandoned keep. It sits on a hill, the solid ground underneath keeping it from sinking forever into the muck.";
	text2 = "This fort is centuries old. It clearly predates the Shaper conquest of the Mera-Tev. It must be one of the few surviving fortresses the woods people used in their futile defense against the invaders. You can still see where the walls were shattered.";
	text3 = "The humans have abandoned this fortress, but it is not empty. The faint smell of essence is in the air. You can sense, even from out here, who lurks inside. They are creations. Powerful ones, so much so that you can feel their presence out here.";
	text4 = "Some of the Unbound have taken up residence here. Unlike most of the Unbound, who wander around causing random destruction until they are hunted down and destroyed, these Unbound have claimed a base and are using it to ravage the fen.";
	text5 = "You can see their tracks in the soft earth. Deep, reptilian footprints, left by the massive creatures. None of them are visible now, but they are sure to emerge soon, ready to resume the hunt for food and victims.";
	action = SET_SDF 25 4 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(25,4) == 0;
	question = "special";
	text1 = "You climb out of the tunnel and emerge in the ruins of an abandoned keep. It sits on a hill, the solid ground underneath keeping it from sinking forever into the muck.";
	text2 = "This fort is centuries old. It clearly predates the Shaper conquest of the Mera-Tev. It must be one of the few surviving fortresses the woods people used in their futile defense against the invaders. You can still see where the walls were shattered.";
	text3 = "The humans have abandoned this fortress, but it is not empty. The faint smell of essence is in the air. You can sense who lurks inside. They are creations. Powerful ones, so much so that you can feel their presence nearby.";
	text4 = "Some of the Unbound have taken up residence here. Unlike most of the Unbound, who wander around causing random destruction until they are hunted down and destroyed, these Unbound have claimed a base and are using it to ravage the fen.";
	text5 = "They are close. If you move farther in, you will meet them soon.";
	action = SET_SDF 25 4 1;
	code =	
		sf(25,3,1);
		sf(25,6,1);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(25,5) == 0;
	question = "special";
	text1 = "The floor here bears the faintly visible outline of a runic circle. The woods people must not have been entirely without magical powers.";
	text2 = "It is obscured by piles and boxes of equipment. The Unbound must have stolen goods and treasure from the places and people they destroyed.";
	text3 = "It is interesting. Though the Unbound are extremely mentally unstable, the innate desires of drayks and drakons to collect a hoard remains in them. So they are not just insane, they're greedy too. A lovely combination.";
	action = SET_SDF 25 5 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(25,6) == 0;
	question = "special";
	text1 = "You step inside the fort, checking first to make sure that the ceiling looks stable. It does. Mostly.";
	text2 = "Though you see the occasional moss and bit of vine, the flora of the fen has had little luck invading the fort. Something has kept the aggressive plants at bay for several centuries.";
	text3 = "Perhaps there is a lingering protective enchantment on the place. It's not impossible.";
	action = SET_SDF 25 6 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(25,3) == 0;
	question = "special";
	text1 = "You walk through the entryway and get a closer look at the keep within. The woods people built it to last. It must have taken an awesome amount of effort to get all these tons of stone out here to make this fortress.";
	text2 = "These walls survived the centuries, the attack of the Shapers, and the harsh environment of the swamp, and they are still standing.";
	text3 = "The ground in the courtyard is covered with tracks. They are not just of the Unbound, but of smaller creations as well.";
	text4 = "The Unbound don't usually tolerate the presence of other creatures. Maybe this is another way in which the altered, unstable drakons here are different.";
	action = SET_SDF 25 3 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "It would appear that one of the caravans the drakons destroyed was carrying alchemical notes and supplies. Among the refuse in this jar, you find a journal. It was damaged but not entirely destroyed during the attack.";
	text2 = "One of the few surviving, comprehensible sections is of some interest:";
	text3 = "_When I reach the anvil under Helft, I will make several batches of purifying elixir. The demonic bile and concentrated mandrake were difficult to obtain, but I at last have enough for my experiments._";
	text4 = "_While the elixir can be applied to a variety of essence-infused equipment, so far, we only know how to further improve greaves, gauntlets, boots, and girdles. This, of course, requires the rarest and most valuable of components._";
	text5 = "_I will begin by taking a cloak ..._";
	text6 = "The rest of the page has been burned away.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";



begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 16;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 18;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 19;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 21;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 22;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 23;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 24;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		